package com.example.statistics.ex

import androidx.recyclerview.widget.RecyclerView
import com.example.statistics.R
import com.jhj.slimadapter.SlimAdapter
import com.jhj.slimadapter.holder.ViewInjector
import java.io.File

inline fun <reified T> slimAdapter(layoutRes: Int, crossinline bind: ViewInjector.(T) -> Unit): SlimAdapter =
        SlimAdapter.creator()
                .register<T>(layoutRes) { injector, bean, _ ->
                    injector.bind(bean)
                }

